<template>
  <web-view :src="url" v-if="url"></web-view>
</template>

<script>
	import { buildUrl } from '@/utils/index.js'
export default {
  components: {},
  data() {
    return {
		url:''
	};
  },
  onLoad(options) {
	  if(options.path){
		  let targetUrl = options.path
		  let query = JSON.parse(options.query || "{}")
		  this.url = buildUrl(targetUrl,query)
	  }
  },

  methods: {},
};
</script>

<style scoped lang="scss"></style>
